#!/bin/bash


for i in {1..50}; do
  ros2 topic pub /stress_${i} std_msgs/String "data: 'stress'" -r 1000 > /dev/null 2>&1 &
done

for i in {1..50}; do
  ros2 topic echo /stress_${i} > /dev/null &  
done